Overview

This section describes the available REST endpoints for retrieving attachments (bilag) from the land registry system.

Attachments can be retrieved directly using their unique uuid. The endpoint supports both public and non-public attachments, as well as testament attachments. Only public attachments are accessible - attempting to retrieve a non-public attachment will result in an access denied error.

The response is returned as a file download with the appropriate MIME type and filename.

Endpoints

HentBilag

Endpoint URL: bilag/{uuid}

Method

GET

Description

Retrieve an attachment directly using its UUID. The endpoint first attempts to retrieve public and non-public attachments. If the attachment is not public, access is denied. If not found, it attempts to retrieve a testament attachment. The response is returned as a file download with the appropriate content type and filename.

Input

Path parameter:

  • uuid

Output

Binary file response with appropriate Content-Type and Content-Disposition headers containing the filename.

Error handling

  • Standard HTTP error codes for invalid input or lack of access.

Interaction pattern

Query response

Example request:

GET /bilag/34879c09-85a9-401c-becd-5b753536dda5 HTTP/1.1
host: nc-dev-xml-api.tinglysning.dk
accept: */*